﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using Finance.UI.ViewModels;

namespace Finance.UI.UserControls
{
    public partial class BatterilyInfoUserControl : UserControl
    {
        public BatterilyInfoUserControl()
        {
            InitializeComponent();
            InitialDataContext();
        }

        private void InitialDataContext()
        {
            var dataContext = new BatterilyInfoViewModel();
            dataContext.CanvasHeight = 484;
            dataContext.ColorPalette = new Dictionary<Color, double>() { 
                { Colors.Red, 0.3 },
                { Colors.Yellow, 0.4},
                { Colors.Green, 0.3}
            };
            dataContext.TotalAmount = 880;
            dataContext.CurrentAmount = 400;

            this.DataContext = dataContext;
        }
    }
}
